package com.neusoft.lohas.modules.ivm.dao.business;

import org.springframework.stereotype.Repository;

import com.neusoft.lohas.common.persistence.BaseDao;
import com.neusoft.lohas.common.persistence.Parameter;
import com.neusoft.lohas.modules.ivm.entity.business.Activity;
/**
 * 活动信息Dao类
 * @author jackie.liu
 * @version 2015-01-30
 */
@Repository
public class ActivityDao extends BaseDao<Activity> {
	public Activity findByName(String merchantId, String name){
		return getByHql("from Activity where merchant.id = :p1 and name = :p2 and delFlag = :p3", new Parameter(merchantId, name, Activity.DEL_FLAG_NORMAL));
	}
}
